<%-- 
    Document   : index
    Created on : 5/Jul/2012, 17:31:37
    Author     : freis
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
        <title>SoftDev Login Panel</title>
        <link rel="stylesheet" href="css/loginLayout.css" type="text/css" media="screen" />
    </head>

    <body>
        <form id="login" name="login" action="authenticate" method="post">
            <h1>Login</h1>
            <% String error = (String)session.getAttribute("error"); 
                if(error != null){
                    out.print("<h4 class='alert_error'>"+error+"</h4>");
                    session.removeAttribute("error");
                }
            %>
            <fieldset id="inputs">
                <input id="username" name="username" type="text" placeholder="Username"  autofocus required>
                <input id="password" name="password" type="password" placeholder="Password"  required>
            </fieldset>
            <fieldset id="actions">
                <input type="submit" id="submit" value="Log in" class="alt_btn">
            </fieldset>
        </form>
    </body>
</html>
